<%@ page import="service.Room" %>



<div class="fieldcontain ${hasErrors(bean: roomInstance, field: 'name', 'error')} required">
	<label for="name">
		<g:message code="room.name.label" default="Name" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="name" maxlength="20" required="" value="${roomInstance?.name}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: roomInstance, field: 'building', 'error')} required">
	<label for="building">
		<g:message code="room.building.label" default="Building" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="building" maxlength="20" required="" value="${roomInstance?.building}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: roomInstance, field: 'capacity', 'error')} required">
	<label for="capacity">
		<g:message code="room.capacity.label" default="Capacity" />
		<span class="required-indicator">*</span>
	</label>
	<g:field type="number" name="capacity" max="500" required="" value="${fieldValue(bean: roomInstance, field: 'capacity')}"/>
</div>

